package com.stellar.circle.convert;

import com.stellar.circle.basic.entity.SComment;
import com.stellar.circle.controller.admin.sComment.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 评论表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-19 14:52:28
 */
@Mapper
public interface SCommentConvert {

    SCommentConvert INSTANCE = Mappers.getMapper(SCommentConvert.class);

    SComment convert(SCommentResponseVO responseVO);

    SComment convert(SCommentRequestVO requestVO);

    SComment convert(SCommentRequestPageVO requestPageVO);

    SCommentResponseVO convert(SComment entity);

    CommentTreeNodeVO convert(SCommentWithUserInfo sCommentWithUserInfo);

    List<SCommentResponseVO> convertEntityToRespList(List<SComment> entities);

}
